home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Zombies & Daemons
- Date: 28 Feb 96 18:54:44 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.825533684@rscernix>
- References: <3134348F.7526@citenet.net>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <3134348F.7526@citenet.net> Oliver Lavery <oliver@citenet.net> writes:
-
- >I've just finished writting a daemon to handle generating web
- >pages from an Oracle database. When it executes, the parent forks a
- >number of children, all of which are bound to a network port. Each child
- >services requests in order etc. etc. works more or less like an apache
- >httpd...
-
- So what?
-
- > The problem is this: when one of the children dies for whatever
- >reason (usually a f*cked OCI call which makes the daemons session
- >unstable), the parent's sigcld handler forks a new child to keep a
- >consistent number of processes running. For some reason, however, the
- >dead child process lingers around as a zombie process ... how do I avoid
- >this?
-
- By reading a book about Unix system programming. If this is too hard
- for you, try comp.unix.programmer, _after_ reading the comp.unix.questions
- FAQ.
-
- > Also, does SunOS support copy on write memory pages? And do
- >zombie processes still use system resources?
-
- What the hell are zombies, OCI calls, sigcld handlers, forks and
- copy on write memory pages supposed to do with the C _language_???
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-